package com.ssm.zhihu_ssm.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;

import java.util.Date;

@Data
public class Letter {

    private int id;
    private int uid;//用户id
    private int fromID;//发给别人人的id
    private String content;//问题内容
    @CreatedDate
    @JsonFormat(pattern="yyyy-MM-dd hh:mm:ss")
    private Date time;//提问时间

//    private  UserMessage formIDmessage;
//
//    public UserMessage getFormIDmessage() {
//        return formIDmessage;
//    }
//
//    public void setFormIDmessage(UserMessage formIDmessage) {
//        this.formIDmessage = formIDmessage;
//    }





    public Integer getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }

//    public int getUid() {
//        return uid;
//    }
//
//    public void setUid(int uid) {
//        this.uid = uid;
//    }

    public void setId(Integer id) {
        this.id = id;
    }

    public int getFromID() {
        return fromID;
    }

    public void setFromID(int fromID) {
        this.fromID = fromID;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
}
